# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=py3-mistune
pkgver=2.0.3
pkgrel=0
pkgdesc="Python Markdown parser module"
url="https://github.com/lepture/mistune"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
checkdepends="py3-nose py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/lepture/mistune/archive/v$pkgver.tar.gz"
builddir="$srcdir/mistune-$pkgver"

# secfixes:
#   2.0.3-r0:
#     - CVE-2022-34749

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/mistune-$pkgver-py2.py3-none-any.whl
}

sha512sums="
1a88b77201d771f1c67b134363d26fba1becb1306e13d2d4fc9216b0ebf6716c17dd6ecba4cbc201e4cab25216597c652a505b14f6446296624af4a9aee85faa  py3-mistune-2.0.3.tar.gz
"
